package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.alioss")//prefix属性指定了配置文件中相关配置项的前缀。
// Spring会将配置文件中以这个前缀开头的属性绑定到注解了@ConfigurationProperties的类的字段上
@Data
public class AliOssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

}
